﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using DemoIServerBusinessLogic;

namespace DemoWeb2008.UIWebService
{
    /// <summary>
    /// Summary description for HRService
    /// </summary>

    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class HRService : System.Web.Services.WebService
    {

        [WebMethod]
        [DataObjectMethod(DataObjectMethodType.Select)]
        public DataSet GetEmployeeName(string Position)
        {
            IServer objGetEmployeeName = Activator.GetObject(typeof(IServer),
                "httP://localhost:2420/server.soap") as IServer;
            return objGetEmployeeName.getNameList(Position);
        }
    }
}
